package D01_03;

import java.io.Serializable;
import java.util.ArrayList;

public class Dept implements Serializable {
    private String did;
    private String dname;
    private ArrayList<Emp> emps;

    public ArrayList<Emp> getEmps() {
        return emps;
    }

    public void setEmps(ArrayList<Emp> emps) {
        this.emps = emps;
    }

    @Override
    public String toString() {
        return "Dept{" +
                "did='" + did + '\'' +
                ", dname='" + dname + '\'' +
                ", emps=" + emps +
                '}';
    }

    public Dept(String did, String dname) {
        this.did = did;
        this.dname = dname;
    }

    public Dept() {
    }

    public String getDid() {
        return did;
    }

    public void setDid(String did) {
        this.did = did;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }
}
